package io.renren.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;
import java.util.Map;

import io.renren.dao.SysBlessDao;
import io.renren.entity.SysBlessEntity;
import io.renren.service.SysBlessService;


@Service("sysBlessService")
public class SysBlessServiceImpl implements SysBlessService {
    @Autowired
    private SysBlessDao sysBlessDao;

    @Override
    public SysBlessEntity queryObject(Integer id) {
        return sysBlessDao.queryObject(id);
    }

    @Override
    public List<SysBlessEntity> queryList(Map<String, Object> map) {
        return sysBlessDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return sysBlessDao.queryTotal(map);
    }

    @Override
    public void save(SysBlessEntity sysBless) {
        sysBless.setCreateTime(new Date());
        sysBlessDao.save(sysBless);
    }

    @Override
    public void update(SysBlessEntity sysBless) {
        sysBlessDao.update(sysBless);
    }

    @Override
    public void delete(Integer id) {
        sysBlessDao.delete(id);
    }

    @Override
    public void deleteBatch(Integer[] ids) {
        sysBlessDao.deleteBatch(ids);
    }

}
